package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网站连接记录对象 web_info_log
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
public class WebInfoLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录序号 */
    private Long logId;

    /** 网站ID（关联website表的web_id） */
    @Excel(name = "网站ID", readConverterExp = "关=联website表的web_id")
    private Long webId;

    /** 连接结果（1：成功；0：失败；2：未连接） */
    @Excel(name = "连接结果", readConverterExp = "1=：成功；0：失败；2：未连接")
    private Integer result;

    /** 连接时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "连接时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date connectTime;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setWebId(Long webId) 
    {
        this.webId = webId;
    }

    public Long getWebId() 
    {
        return webId;
    }

    public void setResult(Integer result) 
    {
        this.result = result;
    }

    public Integer getResult() 
    {
        return result;
    }

    public void setConnectTime(Date connectTime) 
    {
        this.connectTime = connectTime;
    }

    public Date getConnectTime() 
    {
        return connectTime;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("webId", getWebId())
            .append("result", getResult())
            .append("connectTime", getConnectTime())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
